package com.ruoyi.equipment.service;

import java.util.List;
import com.ruoyi.equipment.domain.TDrawer;
import com.ruoyi.equipment.domain.TEquipmentLog;
import io.swagger.models.auth.In;

/**
 * 仓匣Service接口
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
public interface ITDrawerService 
{
    /**
     * 查询仓匣
     * 
     * @param equipmentId 仓匣主键
     * @return 仓匣
     */
    public List<TDrawer> selectTDrawerByEquipmentId(String equipmentId);

    /**
     * 查询仓匣列表
     * 
     * @param tDrawer 仓匣
     * @return 仓匣集合
     */
    public List<TDrawer> selectTDrawerList(TDrawer tDrawer);

    /**
     * 新增仓匣
     * 
     * @param tDrawer 仓匣
     * @return 结果
     */
    public int insertTDrawer(TDrawer tDrawer);

    /**
     * 修改仓匣
     * 
     * @param tDrawer 仓匣
     * @return 结果
     */
    public int updateTDrawer(TDrawer tDrawer);

    /**
     * 批量删除仓匣
     * 
     * @param equipmentIds 需要删除的仓匣主键集合
     * @return 结果
     */
    public int deleteTDrawerByEquipmentIds(String[] equipmentIds, Integer[] drawerNos);

    /**
     * 删除仓匣信息
     * 
     * @param equipmentId 仓匣主键
     * @return 结果
     */
    public int deleteTDrawerByEquipmentId(String equipmentId);

    /**
     * 仓匣的具体信息
     * @param tDrawer
     * @return
     */
    TDrawer selectTDrawerDeatil(TDrawer tDrawer);

    int popTDrawerByEquipmentIds(String[] equipmentIds, Integer[] drawerNos);

    //借出仓匣工具
    int lendTDrawer(TEquipmentLog tEquipmentLog);
}
